﻿@helper AmountFormater(IEnumerable<RestApp.BusinessLogic.BusinessModels.BigReportAmount> amounts, int month)
{
    var amount = amounts.FirstOrDefault(t => t.Month == month);
    if(amount != null)
    {
        @(amount.MonthAmount)
    }
    else
    {
        @: -
    }
}

@helper Amount(IEnumerable<RestApp.BusinessLogic.BusinessModels.BigReportAmount> amounts)
{
    var sum = amounts.Sum(t => t.MonthAmount);
    @(sum)
}